@ECHO OFF
ECHO DEMARRAGE
SAMPLE.EXE
ECHO ERROR %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO PROBLEM
IF ERRORLEVEL 0 GOTO PRINT
:PROBLEM
ECHO   SAMPLE.EXE RETURNED ERRORCODE 1 !
GOTO END
:PRINT
ECHO  SAMPLE.EXE RETURNED NO ERRORCODE
GOTO END
:END
ECHO THE END
